package com.xbongbong.pro.enums.raiders.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 攻略产品核销状况枚举
 *
 * @author 徐俊杰
 * @version v1.0
 * @date 2019/9/21 14:55
 * @since v1.0
 */
@Getter
public enum RaidersVerificationEnum {
    /**
     * 核销枚举，对应数据库内verification字段
     */
    EXPIRED(2, "enum.raidersVerification.name.expired"),


    VERIFICATION(1, "enum.raidersVerification.name.verification"),


    NOT_VERIFICATION(0, "enum.raidersVerification.name.not_verification"),


    UNKNOWN(404, "enum.raidersVerification.name.unknown"),

    ;

    /**
     * 枚举值 --
     */
    private final int code;
    /**
     * 枚举信息--中文名称
     */
    private final String name;

    RaidersVerificationEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
